package test;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import de.gugubarra.core.nop.Topic;

public class Centroid extends Point{
	
	private int id;

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	private Map<Topic, Double> tvMap;
	
	public double getValue(Topic t){
		return getTvMap().get(t);
	}
	
	public void setValue(Topic t, double v){
		getTvMap().put(t, v);
	}
	
	public Map<Topic, Double> getTvMap(){
		if(tvMap == null){
			tvMap = new HashMap<Topic, Double>();
		}
		return tvMap;
	}
	

}
